<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<h:form id="categoryForm">
	<h:panelGrid styleClass="section" columns="1">
		<h:outputText styleClass="sectionHeader" value="Categories"/>
		<h:dataTable	id="categoryTable"
						value="#{titleSection.categories}"
						var="category"
		>
			<h:column>
				<h:commandLink styleClass="menu" action="#{titleSection.selectCategory}">
					<h:outputText 	id="categoryName"
									value="#{category.categoryName}"
					/>
				</h:commandLink>
			</h:column>
		</h:dataTable>
	</h:panelGrid>
</h:form>